<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "user_record".
 *
 * @property string $id
 * @property string $award_id
 * @property string $user_id
 * @property integer $date
 * @property integer $create_time
 */
class UserRecord extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_record';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['date', 'create_time'], 'integer'],
            [['id', 'award_id', 'user_id'], 'string', 'max' => 36],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'award_id' => 'Award ID',
            'user_id' => 'User ID',
            'date' => 'Date',
            'create_time' => 'Create Time',
        ];
    }
}
